import sqlite3

def batch_delete_users(user_ids):
    # 连接到数据库
    conn = sqlite3.connect('example.db')
    cursor = conn.cursor()

    # 构建SQL语句
    sql = "DELETE FROM users WHERE id IN ({})".format(','.join('?' * len(user_ids)))

    # 执行批量删除操作
    cursor.executemany(sql, user_ids)

    # 提交更改并关闭连接
    conn.commit()
    cursor.close()
    conn.close()

# 调用批量删除函数
batch_delete_users(user_ids)
